package com.ruoyi.web.enums;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum CountEnum {

    ADD("+"){
        @Override
        public int Count(int a,int b){
            return a+b;
        }
    },
    SUBTRACT("-"){
        @Override
        public int Count(int a,int b){
            return a-b;
        }
    }
    ;

    public final String desc;

    public abstract int Count(int a,int b);

}
